package com.wzh.yebServe.controller;

import com.wzh.yebServe.pojo.User;
import com.wzh.yebServe.service.IUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author wzh
 * @create 2022/11/22 19:46
 * @Description:在线聊天
 */
@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private IUserService iUserService;



    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/users")
    public List<User>  getAllAdmins(String keywords){
        return iUserService.getAllUsers(keywords);
    }

}
